/*
 * @Description: 标准折线图数据格式
 * @Autor: HuiSir<273250950@qq.com>
 * @Date: 2020-08-12 09:59:10
 * @LastEditTime: 2020-08-14 11:09:27
 */
const stateRes = { code: 0, msg: 'ok' } //状态码

//1线
export const Line1 = {
  data: {
    'xAxis|6': ['@cname'],
    series: [{ 'data|6': ['@integer(100, 1000)'] }]
  },
  ...stateRes
}

//多线
export const Line2 = {
  data: {
    'xAxis|6': ['@cname'],
    'series|3': [
      {
        name: '@cword(3)',
        'data|6': ['@integer(100, 1000)']
      }
    ]
  },
  ...stateRes
}

//测试正负数据轴-单线
export const Line3 = {
  data: {
    'xAxis|6': ['@cname'],
    series: [{ 'data|6': ['@integer(-1000, 1000)'] }]
  },
  ...stateRes
}

//测试区域划分-单线
export const Line4 = {
  data: {
    xAxis: () => {
      let arr = []
      for (let i = 1; i <= 12; i++) {
        arr.push(i + '月')
      }
      return arr
    },
    series: [{ 'data|12': ['@integer(-1000, 1000)'] }]
  },
  ...stateRes
}
